import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';

import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {FormsModule} from '@angular/forms';
import {HttpClientModule} from '@angular/common/http';
import {NgZorroAntdModule, NZ_I18N, zh_CN} from 'ng-zorro-antd';
import {registerLocaleData} from '@angular/common';
import zh from '@angular/common/locales/zh';
import {LsUtil} from './util/LsUtil';
import {GlobalService} from './service/GlobalService';
import {MainComponent} from './component/main/main.component';
import {LoginComponent} from 'src/app/component/login/login.component';
import {ForgetPswComponent} from './component/login/forget-psw/forget-psw.component';
import {AdminComponent} from './component/admin/admin.component';
import {AdminDetailComponent} from './component/admin/admin-detail/admin-detail.component';
import { CSelectComponent } from './layout/c-select/c-select.component';
import { InputSelectComponent } from './layout/input-select/input-select.component';

registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    LoginComponent,
    MainComponent,
    AdminComponent,
    ForgetPswComponent,
    AdminDetailComponent,
    CSelectComponent,
    InputSelectComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    BrowserAnimationsModule,
    FormsModule,
    HttpClientModule,
    NgZorroAntdModule
  ],
  entryComponents: [ForgetPswComponent, AdminDetailComponent],
  providers: [LsUtil, GlobalService, {provide: NZ_I18N, useValue: zh_CN}],
  bootstrap: [AppComponent]
})
export class AppModule {
}
